<template>
    <view class="group-select" v-if="showDrawer">
        <view class="mark" @click="closeFuc"></view>
        <view class="drawer">
            <view class="down" @click="closeFuc">
                <view class="down-btn"></view>
            </view>
            <!-- <view class="base-line"></view> -->
            <view class="drawer-content">
                <slot></slot>
            </view>
            <!-- <view class="footer-btns" >
                <view class="reSet" @click.stop="handleReset">重置</view>
                <view class="submit" @click.stop="submit"> 确定  </view>
            </view> -->
        </view>

    </view>
</template>
<script>

export default {
	data() {
		return {
			showDrawer: false,
		};
	},
  
	props: {
		depElevatorList:{
			type:Array,
			default: ()=>[]
		},

	},
	watch:{
        
	},  
	computed:{
       
	},
	created() {

	},
	methods: {
		closeFuc() {
			this.showDrawer = false;
			this.$emit('closed', false);
		},
		inits() {
			this.showDrawer = true;
		}
       
	},
};
</script>
<style lang="scss" scoped>
@keyframes scaleFrames {
    from {
        transform: translateY(110%);
    }

    to {
        transform: translateY(0);
    }
}

.mark {
    width: 100%;
    height: 100vh;
    z-index: 301;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.17);
}

.drawer {
    z-index: 302;
    width: calc(100%);
    margin: 0 auto;
    background-color: #fff;
    border-top-right-radius: 8rpx;
    border-top-left-radius: 8rpx;
    animation: scaleFrames 0.3s ease;
    padding-top: 0rpx;
    position: fixed;
    bottom: 0;
    left: 0;
    letter-spacing: 0.1rpx;

    // padding-bottom: 10rpx;
    // overflow-y: auto;
    .down {
        width: 100%;
        padding: 18rpx 0;

        .down-btn {
            width: 64rpx;
            height: 10rpx;
            background: #d8d8d8;
            border-radius: 6rpx;
            margin: 0 auto;
        }
    }

    &-search {
        width: 710rpx;
        height: 68rpx;
        background: #f6f6f6;
        border-radius: 8rpx;
        margin: 6rpx auto;
        display: flex;
        align-items: center;
        color: #333;

        .left-icon {
            width: 40rpx;
            height: 40rpx;
            padding: 16rpx;
        }

        input {
            flex: 1;
            font-size: 26rpx;
        }

        .clear {
            font-size: 24rpx;
            padding: 16rpx;
        }
    }

    .base-line {
        width: 100%;
        height: 18rpx;
        background-color: #fff;
        border-bottom: 16rpx solid #f3f6f8;
    }

    &-content {
        width: 100%;
        height: 828rpx;
        overflow-x: hidden;
        overflow-y: scroll;
        background-color: #fff;

        &-title {
            width: calc(100% - 20rpx);
            height: 64rpx;
            line-height: 64rpx;
            background: #f3f6f8;
            color: #666666;
            font-size: 24rpx;
            padding-left: 20rpx;
        }

    }

    .empty {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 100rpx;

        .circle {
            width: 112rpx;
            height: 112rpx;
        }

        image {
            width: 112rpx;
            height: 112rpx;
        }

        .title {
            font-size: 26rpx;
            color: #666;
            font-weight: normal;
            margin-top: 10rpx;
        }
    }
}

.footer-btns {
    display: flex;
    padding: 20rpx 38rpx;
    border-top: 2rpx #eee solid;

    view {
        display: flex;
        flex: 1;
        height: 70rpx;
        justify-content: center;
        align-items: center;
        font-size: 28rpx;
    }

    .reSet {
        background-color: #f5fbff;
        color: #0091ff;
        // margin-right: 10rpx;
        border-top-left-radius: 8rpx;
        border-bottom-left-radius: 8rpx;
    }

    .submit {
        // width: 100%;
        // text-align: center;
        border-top-right-radius: 8rpx;
        border-bottom-right-radius: 8rpx;
        background-color: $theme-color;
        color: #fff;
    }
}

@mixin animate2 {
    -moz-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

</style>